package org.lyfeng.spring.utils;

import java.lang.annotation.Annotation;

import org.lyfeng.spring.aop.annotation.Aspect;
import org.lyfeng.spring.context.annotation.Component;

public class ClassUtils {
	public static Class<?> forName(String name, ClassLoader classLoader)
	{
		return null;
	}
	public static ClassType getClassType(Class<?> clazz)
	{
		Annotation[] annotations=clazz.getAnnotations();
		
		for(Annotation a:annotations)
		{
			if(a instanceof Aspect)
			{
				return ClassType.Aspect;
			}else if(a instanceof Component)
			{
				return ClassType.Component;
			}
		}
		return null;
	}
}
